/**
 * Created by yoyoyk on 2017/3/8.
 */
import React , {Component}from 'react';
import { Icon } from 'antd';
import Confirm from '../../common/Confirm'

import {Modal} from 'fly';


/*业务平台>人员管理>编辑部门*/
export default class Deletepart extends React.Component {
    constructor(props){
        super(props);
        this.state = { visible: false }
        this.Style={};
    }

    componentWillMount() {
        this.Style.addpersonview={
            textAlign:"center",
            display:"block",
            border:"3px solid green"
        };
        this.Style.addpersonview.width = 400;
        this.Style.addpersonview.height = 200;
        this.Style.addpersonview.fontSize = 30;

        this.Style.addpersonview={
            width:"634px",
            height:"44px",
            paddingLeft:"18px",
            lineHeight:"44px",
            display:"block",
            background:"#f2f2f2",
            marginBottom:49
        }
    }

    state = { visible: false }
    showModal = () => {
        this.setState({
            visible: true,
        });
    };

    handleOk = (e) => {
        this.setState({
            visible: false,
        });
    };

    handleCancel = (e) => {
        this.setState({
            visible: false,
        });
    };

    sure(){
        this.setState({
            visible: false,
        });
        this.props.deletpartcallback();
    }
    cancel (){
        this.setState({
            visible: false,
        });
    }

    render(){
        return (
            <div>
                <Modal visible={this.state.visible} className="close_style_modal"
                       onOk={this.sure.bind(this)}
                       onCancel={this.cancel.bind(this)}
                       style={{width:"634px",height:"240px",display:"block"}} title={"删除部门"}>
                    <div style={{textAlign:"center"}}>
                        <Icon type="exclamation-circle" style={{color:"#fc880c",fontSize:32,verticalAlign:"middle"}}/>
                        <span style={{fontSize:16,marginLeft:15}}>确定删除部门吗？</span>
                    </div>
                </Modal>
            </div>
        )
    }
}




